-- GENERATED SPELL FOR [Goretalon Roc] --


function spell0_28004(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(55079,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28004', 515, 1)
end

function Sorts_28004(pUnit, Event)
local choix_sorts_28004 = math.random(0, 0)
if choix_sorts_28004 == 0 then
pUnit:RegisterEvent('spell0_28004', 1, 1)
end
end

function mob28004_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28004', math.random(1500, 3000), 1)
end

function mob28004_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28004_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28004_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28004, 1, 'mob28004_Action')
RegisterUnitEvent(28004, 2, 'mob28004_Leave')
RegisterUnitEvent(28004, 3, 'mob28004_Kill')
RegisterUnitEvent(28004, 4, 'mob28004_Die')
